package Si.Assign1.Model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;


public class Addresses 
{
    public Addresses(){}
  
    /*
     * Properties
	 */
    
    /* 
     * Set and get id
     */
    public int getId()
	{	return id;       }
	public void setId(int id)
	{   this.id = id;     }

	/*
	 * Set and get address_line_1
	 */
	public String getAddressLine1()
	{	return addressLine1;    }
	public void setAddressLine1(String addressLine1)
	{	this.addressLine1 = addressLine1;	}
	
	/*
	 * Set and get address_line_2
	 */
	public String getAddressLine2()
	{	return addressLine2;     }
	public void setAddressLine2(String addressLine2)
	{	this.addressLine1 = addressLine2;	}
	
	/*
	 * Set and get suburb
	 */
	public String getSuburb()
	{   return suburb;    }
    public void setSuburb(String suburb)
	{   this.suburb = suburb;  }
    
    /*
	 * Set and get state
	 */
	public String getState()
	{	return state;	}
	public void setState(String state)
	{   this.state = state;   }

	/*
	 * Set and get post_code
	 */
	public String getPostCode()
	{   return postCode;     }
	public void setPostCode(String postCode)
	{   this.postCode = postCode;  }
	
	/*
	 * Set and get country
	 */
	public String getCountry()
	{	return country;     }
	public void setCountry(String country)
	{   this.country = country;  }
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Basic(optional=false)
	@Column(name="id", nullable=false)
	private int id;
	@Column(name="address_line_1", length = 1086, nullable=false)
	private String addressLine1;
	@Column(name="address_line_2", length = 1086, nullable=true)
	private String addressLine2;
	@Column(name="suburb", length = 1086, nullable=false)
	private String suburb;
	@Column(name="state", length = 255, nullable=true)
	private String state;
	@Column(name="post_code", length = 255, nullable=false)
	private String postCode;
	@Column(name="country", length = 255, nullable=false)
	private String country;
}
